﻿using System;
using System.Text.Json.Serialization;

namespace Athena.Serialization.Implementations
{
    public class DefaultJsonSerializer : ISerializer<string>
    {
        public string Serialize(object content)
        {
            return JsonSerializer.ToString(content);
        }

        public object Deserialize(string content, Type type)
        {
            return JsonSerializer.Parse(content, type);
        }
    }
}
